#pragma once
typedef int type;
#define Max 10
#define MaxPassWord 20

typedef struct  yu {
	type val;
	int password;
	struct yu* prev;
	struct yu* next;

}sl;

int size(sl* head);
void display(sl* head);
sl* insertFirst(int val);
sl* insertLast(int val);
void findindex(sl* head, int val);
void findval(sl* head, int i);
 sl* delect(sl* head, int i);
void fix(sl* head, int i);
void cycle(sl* head);
int peopleNum();
int maxval();
void deal(sl* head, int num, int val, int array[Max]);
void result(int array[],int num);

